/**
 * 
 */
package me.joshua.demo4j.spring.context.profile;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @author <a href="mailto:daonan.zhan@gmail.com">Joshua Zhan</a>
 */
public class DemoService {

	private String	name;

	@PostConstruct
	public void init() {
		System.out.println(String.format("DemoService[%s] loaded", name));
	}

	@PreDestroy
	public void destroy() {
		System.out.println(String.format("DemoService[%s] unloaded", name));
	}

	public void setName(String name) {
		this.name = name;
	}
}
